import {WeaForm} from 'comsMobx'
import {observable, action, toJS} from 'mobx';

class SearchFromStores {
    @observable form = new WeaForm();

    @action  getFormParams() {   return this.form.getFormParams();}

    /**
     * 重置表单
     */
    @action  resetForm = () => {this.form.resetForm()}

    datas0 = null;
    datas1 = null;

    /**
     *  获取指定id对象
     * @param id id
     * @returns {*|{name}}
     */
    @action getField(id) { return this.form.getField(id);}

    /**
     * 设置表单的指定domkey的值
     * @param id id
     * @param parame 修改后的标签内容
     */
    @action setField(id, parame) {this.form.setField(id, parame)};
}
export  default SearchFromStores;
